# -*- coding: utf-8 -*-
"""
Created on Fri Nov 18 11:08:06 2022

@author: YSL
"""

num=[23,2,4,6,7]
a=len(num)
k=int(input("请输入一个整数："))
for i in range(a):
    sum=0
    for j in range(i,a):
        sum+=num[j]
        if sum==k:
            break
if sum==k:
    print("True")
    for n in range(i,j+1):
        print("%3d" % num[n],end=" ")
else:
    print("False")